package cn.exrick.xboot.modules.Item.service;

import cn.exrick.xboot.modules.Item.pojo.Item;
import org.springframework.stereotype.Service;

import java.util.Random;
@Service
public class ItemService {

    public Item saveItem(Item item){
        //模仿商品新增
        int id = new Random().nextInt(100);
        item.setId(id);
        return item;
    }
}
